//
//  mmTests.swift
//  mmTests
//
//  Created by mac on 16/4/6.
//  Copyright © 2016年 Qingke. All rights reserved.
//

import XCTest

class mmTests: XCTestCase {
    
    override func setUp() {
        super.setUp()
        // Put setup code here. This method is called before the invocation of each test method in the class.
    }
    
    override func tearDown() {
        // Put teardown code here. This method is called after the invocation of each test method in the class.
        super.tearDown()
    }
    
    func testExample() {
        // This is an example of a functional test case.
        // Use XCTAssert and related functions to verify your tests produce the correct results.
    }
    
    func testPerformanceExample() {
        // This is an example of a performance test case.
        self.measureBlock {
            // Put the code you want to measure the time of here.
        }
        
    }
    func testBeautyInit() {
        let b1 = Beauty(name: "a", photo: nil, ranting: 2)
        XCTAssertNotNil(b1)
        let b2 = Beauty(name: "", photo: nil, ranting: 3)
        XCTAssertNil(b2)
        let b3 = Beauty(name: "c", photo: nil, ranting: -2)
        XCTAssertNil(b3)
    }

    
}
